
INCLUDE_DIRECTORIES(  ${LUAEx_SOURCE_DIR} )
INCLUDE_DIRECTORIES(  ${LUA_INCLUDE_DIR} )
##INCLUDE_DIRECTORIES(  ${TOLUA++_INCLUDE_DIR} )
INCLUDE_DIRECTORIES(  ${SOL2_INCLUDE_DIR} )
INCLUDE_DIRECTORIES(  ${EIGEN3_INCLUDE_DIR} )
INCLUDE_DIRECTORIES(  ${Boost_INCLUDE_DIR} )
INCLUDE_DIRECTORIES(  ${MYLIB_DIR} )
INCLUDE_DIRECTORIES(  ${MYLIB_LOG_INCLUDE_DIR} )


set(LUA_ParametersSweep_ALLFILES  
						global.h
						global.cpp
						)

if(LUA_NUMERIC_STATIC_LIB)
	ADD_LIBRARY(luaParametersSweep STATIC ${LUA_ParametersSweep_ALLFILES})
else()
	ADD_LIBRARY(luaParametersSweep SHARED ${LUA_ParametersSweep_ALLFILES})
    if(WIN32)
        add_definitions( -DLUA_ParametersSweep_DLL -DluaParametersSweep_EXPORTS )
    endif(WIN32)
endif()

add_definitions(-DUNICODE -D_UNICODE)
# 检查是否为 MSVC 编译器
if(MSVC)
    set(luaState_LIBRARY luaState)
endif()

if(WIN32 OR APPLE)
    target_link_libraries(luaParametersSweep ${LUA_LIBRARY}
    								 ${EXTERNAL_LIBRARIES}
     								 ${MYLIB_LOG_LIBRARY})    
endif()

SET_TARGET_PROPERTIES(luaParametersSweep PROPERTIES PREFIX "")
collect_library(luaParametersSweep)
